#include "Test.Batch.h"

#undef  APP_NAME
#define APP_NAME	TestBatchScissor
#undef  APP_BASE
#define APP_BASE	TestBatch


class APP_NAME : public APP_BASE
{
public:
	APP_NAME (IPlatform *platform, EDevice::type deviceType) :
		APP_BASE( platform, deviceType )
	{}

	void OnEnter () override
	{
		TestBatch::OnEnter();

		ESS()->GetGraphicsEngine()->GetBatchRender()->ScissorTest( true );
		ESS()->GetGraphicsEngine()->GetBatchRender()->Scissor( rect( -0.5f, -0.5f, 0.5f, 0.5f ) );
	}
};